﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Frame.Lib.Core.Attach
{
    public partial class ImageInfo
    {
        public const string INSERT_SQL = "insert into [-TableName-] ( [ID], [Name], [BindID], [Remark], [Flag], [Size], [Width], [Height], [InputTime], [SmallImage], [BigImage], [OriginImage], [ClickCount], [Orders]) values ( @ID, @Name, @BindID, @Remark, @Flag, @Size, @Width, @Height, @InputTime, @SmallImage, @BigImage, @OriginImage, @ClickCount, @Orders)";
        public const string UPDATE_SQL = "update [-TableName-] set  [ID] = @ID, [Name] = @Name, [BindID] = @BindID, [Remark] = @Remark, [Flag] = @Flag, [Size] = @Size, [Width] = @Width, [Height] = @Height, [InputTime] = @InputTime, [SmallImage] = @SmallImage, [BigImage] = @BigImage, [OriginImage] = @OriginImage, [ClickCount] = @ClickCount, [Orders] = @Orders where ID = @ID";
        /// <summary>
        /// PK
        /// </summary>
        public Int32 ID
        {
            get;
            set;
        }
        /// <summary>
        /// 原始图片文件名
        /// </summary>
        public String Name
        {
            get;
            set;
        }
        /// <summary>
        /// 文章ID
        /// </summary>
        public Int32 BindID
        {
            get;
            set;
        }
        /// <summary>
        /// 描述
        /// </summary>
        public String Remark
        {
            get;
            set;
        }
        /// <summary>
        /// 标识
        /// </summary>
        public String Flag
        {
            get;
            set;
        }
        /// <summary>
        /// 图片大小
        /// </summary>
        public Int32 Size
        {
            get;
            set;
        }
        /// <summary>
        /// 原始图片宽度
        /// </summary>
        public Int32 Width
        {
            get;
            set;
        }
        /// <summary>
        /// 原始图片高度
        /// </summary>
        public Int32 Height
        {
            get;
            set;
        }
        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime InputTime
        {
            get;
            set;
        }
        /// <summary>
        /// 小图
        /// </summary>
        public String SmallImage
        {
            get;
            set;
        }
        /// <summary>
        /// 大图
        /// </summary>
        public String BigImage
        {
            get;
            set;
        }
        /// <summary>
        /// 原始图片
        /// </summary>
        public String OriginImage
        {
            get;
            set;
        }
        /// <summary>
        /// 浏览次数
        /// </summary>
        public Int32 ClickCount
        {
            get;
            set;
        }
        /// <summary>
        /// 排序
        /// </summary>
        public Int32 Orders
        {
            get;
            set;
        }
    }


}
